﻿using System;
using OS.Common.Plugs.CachePlug;
using OS.Common.Plugs.ConfigPlug;
using OS.Common.Plugs.DictionaryPlug;
using OS.Common.Plugs.LogPlug;

namespace OS.Common
{
    /// <summary>
    /// 基础配置模块
    /// </summary>
    public static class BaseConfig
    {
        /// <summary>
        /// 日志模块提供者
        /// </summary>
        public static Func<string, ILogPlug> LogProvider { get; set; }

        /// <summary>
        /// 缓存模块提供者
        /// </summary>
        public static Func<string, ICachePlug> CacheProvider { get; set; }

        /// <summary>
        /// 字典模块提供者
        /// </summary>
        public static Func<string, IDictionaryPlug> DictionaryProvider { get; set; }

        /// <summary>
        /// 配置模块提供者
        /// </summary>
        public static Func<string, IConfigPlug> ConfigProvider { get; set; }
    }
}